package com.quincy.mapper;

import com.quincy.pojo.Videos;
import com.quincy.pojo.vo.VideosVO;
import com.quincy.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Quincy on 2018/5/27.
 */
public interface VideosMapperCustom extends MyMapper<Videos> {
    public List<VideosVO> queryAllVideos(@Param("videoDesc") String videoDesc, @Param("userId") String userId);

    /**
     *@Description:  对视频喜欢的数量进行累加
     * */
    public void addVideoLikeCount(String videoId);

    /**
     *@Description:  对视频喜欢的数量进行累减
     * */
    public void reduceVideoLikeCount(String videoId);

    /**
     *@Description:  查询我关注的人的视频
     * */
    public List<VideosVO> queryMyFollowVideos(String userId);

    /**
     *@Description:  查询我喜欢的视频
     * */
    public List<VideosVO>  queryMyLikeVideos(String userId);
}
